import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  type: [{ required: true, message: "类型为必填项", trigger: "type" }],
  number: [{ required: true, message: "车牌号为必填项", trigger: "blur" }],
  status: [{ required: true, message: "状态为必填项", trigger: "blur" }],
  attachment: [{ required: true, message: "图片为必填项", trigger: "blur" }]
});
